using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class OptimizeCube : MonoBehaviour
{
    [SerializeField]
    float randomNum;
    // Start is called before the first frame update
    void Start()
    {
        randomNum = Random.Range(1f, 2f);
        //MaterialPropertyBlock material = new MaterialPropertyBlock();
        //material.SetColor("_Color", new Color(Random.Range(0f, 1f), Random.Range(0f, 1f), Random.Range(0f, 1f)));
        //GetComponent<MeshRenderer>().SetPropertyBlock(material);

    }

    // Update is called once per frame
    void Update()
    {
     
        transform.RotateAround(transform.parent.position, Vector3.up, randomNum);
    }
}
